import requests
proxy='127.0.0.1:8888'
#proxy=['116.196.90.176:3128','121.17.174.121:9797',58.253.154.192:9999,]
proxies={
    'http':'http://'+proxy,
    'https':'https://'+proxy,
}
print(requests.get("http://www.baidu.com",proxies=proxies).text)
